import React from 'react'
import { withRouter } from 'react-router-dom'
import './source.scss'

const Source = (props) => {
  const { pathname } = props.location
  const url = `https://gitee.com/jikey/react-tool-admin/tree/master/src/views${pathname}`

  return (
    <div className="app-source">
      <a href={url} target="_blank" rel="noreferrer" >JSX</a>
    </div>
  )
}

export default withRouter(Source)
